package com.itdct.onflow.core.entity

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableId
import com.itdct.onflow.core.annotation.Column
import java.io.Serializable
import java.util.Date

/**
 * @author Zhouwx
 * @date 2025/7/20 15:13:02
 * @version 1.0
 * @description id实体，什么都不需要的实体继承该类
 */
open class IdEntity : Serializable{
    @TableId(type = IdType.AUTO)
    @Column(comment = "主键id", primaryKey = true, nullable = false, autoincrement = true, sort = -100)
    var id: Long? = null

    @Column(comment = "创建时间", sort = 10001)
    var createTime: Date? = null

    @Column(comment = "更新时间", sort = 10002)
    var updateTime: Date? = null
}